FROM ubuntu:16.04


USER root

RUN apt-get -q update && \
    apt-get -qy install --no-install-recommends \
    supervisor nginx

RUN apt-get -qy install --no-install-recommends \
	ruby-full

ADD etc /var/www/etc

RUN mv /var/www/etc/supervisor/conf.d/webapp_https.conf /etc/supervisor/conf.d/

CMD ["supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]
